﻿using System;
using Abp.Domain.Entities.Auditing;
using JetBrains.Annotations;

namespace Camc.Quality.CodeFormat
{
    public class CodeFormatDesc : FullAuditedEntity<Guid>
    {
        /// <summary>
        ///     编码名称
        /// </summary>
        public string CodeName { get; set; }

        /// <summary>
        ///     系统规则
        /// </summary>
        [CanBeNull]
        public string SysRules { get; set; }

        /// <summary>
        ///     是否自动生成1：是，0：否
        /// </summary>
        public AutoGenerates AutoGenerate { get; set; }     //todo: why not just use boolean?

        /// <summary>
        ///     是否使用1：不启用，0：启用
        /// </summary>
        public IsUsed IsUsed { get; set; }      //todo: why not just use boolean?

        /// <summary>
        ///     备注
        /// </summary>
        [CanBeNull]
        public string Remark { get; set; }
        /// <summary>
        /// 可用模块
        /// </summary>
        public string AvailableModules { get; set; }
    }
}